package com.swinw.asumall.order.feign;

import com.swinw.asumall.order.vo.MemberAddressVo;
import com.swinw.asumall.order.vo.MemberVo;
import com.swinw.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("member-service")
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/getMemberAssressList/{memberId}")
    List<MemberAddressVo> getMemberAssressList(@PathVariable("memberId") Long memberId);

    @RequestMapping("/member/member/info/{id}")
    MemberVo info(@PathVariable("id") Long id);
}
